package com.easy.dao;

import com.easy.bean.Orderdetails;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderdetailsDao {

    List<Orderdetails> getOrderdetailsList(@Param("page") Page page, @Param("text")String text);
    int addOrderdetails(@Param("orderdetails") Orderdetails orderdetails);
    int editOrderdetails(@Param("orderdetails") Orderdetails orderdetails);
    int deleteOrderdetails(@Param("orderid") int orderid,@Param("proid") int proid);
    int OrderdetailsCount(@Param("text") String text);
    List<Orderdetails> getOrderdetailsById(@Param("id")int orderid);
    double totalOrderdetailsPrice(@Param("id")int orderid);
    int insertOrderdetails(@Param("userid") int userid,@Param("orderid") int orderid);
}
